n=400; numbers=[400,2,398,1,397,396,4,3,395,394,6,5,393,392,8,7,391,390,10,9,389,388,12,11,387,386,14,13,385,384,16,15,383,382,18,17,381,380,20,19,379,378,22,21,377,376,24,23,375,374,26,25,373,372,28,27,371,370,30,29,369,368,32,31,367,366,34,33,365,364,36,35,363,362,38,37,361,360,40,39,359,358,42,41,357,356,44,43,355,354,46,45,353,352,48,47,351,350,50,49,349,348,52,51,347,346,54,53,345,344,56,55,343,342,58,57,341,340,60,59,339,338,62,61,337,336,64,63,335,334,66,65,333,332,68,67,331,330,70,69,329,328,72,71,327,326,74,73,325,324,76,75,323,322,78,77,321,320,80,79,319,318,82,81,317,316,84,83,315,314,86,85,313,312,88,87,311,310,90,89,309,308,92,91,307,306,94,93,305,304,96,95,303,302,98,97,301,300,100,99,299,298,102,101,297,296,104,103,295,294,106,105,293,292,108,107,291,290,110,109,289,288,112,111,287,286,114,113,285,284,116,115,283,282,118,117,281,280,120,119,279,278,122,121,277,276,124,123,275,274,126,125,273,272,128,127,271,270,130,129,269,268,132,131,267,266,134,133,265,264,136,135,263,262,138,137,261,260,140,139,259,258,142,141,257,256,144,143,255,254,146,145,253,252,148,147,251,250,150,149,249,248,152,151,247,246,154,153,245,244,156,155,243,242,158,157,241,240,160,159,239,238,162,161,237,236,164,163,235,234,166,165,233,232,168,167,231,230,170,169,229,228,172,171,227,226,174,173,225,224,176,175,223,222,178,177,221,220,180,179,219,218,182,181,217,216,184,183,215,214,186,185,213,212,188,187,211,210,190,189,209,208,192,191,207,206,194,193,205,204,196,195,203,202,198,197,201,200,399,199];